package com.haixiaoke.saas.enterprise.account.yima;


import com.haixiaoke.saas.bill.domain.Bank;
import com.haixiaoke.saas.bill.service.IBankService;
import com.haixiaoke.saas.common.annotation.TenantScope;
import com.haixiaoke.saas.common.core.page.TableDataInfo;
import com.haixiaoke.saas.system.BaseController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 银行信息Controller
 *
 * @author qixi
 * @date 2024-06-25
 */
@RestController
@RequestMapping("/enterprise/account/yima/bank")
public class EnterpriseBankController extends BaseController {
    @Autowired
    private IBankService bankService;

    /**
     * 查询银行信息列表
     */
    @GetMapping("/list")
    @TenantScope
    public TableDataInfo list(Bank bank) {
        startPage();
        List<Bank> list = bankService.selectBankList(bank);
        return getDataTable(list);
    }


}
